package Day10Zuoye;

import java.util.Scanner;

public class Menu {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        boolean flag=false;
        do {
            System.out.println("输入1-3任意一个数:");
            int i=in.nextInt();
            try {
                switch (i){
                    case 1:
                        System.out.println("登录");
                        break;
                    case 2:
                        System.out.println("注册");
                        break;
                    case 3:
                        System.out.println("联系客服");
                        break;
                    default:
                        System.out.println("输入错误,重新输入");
                }
            }catch (Exception e){
                System.out.println(e);
            }finally {
                System.out.println("NB");
            }
            if (i==1||i==2||i==3){
                flag=false;
            }
        }while(flag);
    }
}
